

#去除列表所有的''
my_list = [['a', '', '', ''], ['', 'b', '', ''], ['', '', 'c', ''], ['', '', '', 'd']]


list2 =[]
for list_1 in my_list:
	list3 =[]
	for element in list_1:
		
		if element != '':
			list3.append(element)
	list2.append(list3)

print(list2)


